import request from '@/utils/request'

// 查询流程按钮列表
export function listButton(query) {
  return request({
    url: '/system/button/list',
    method: 'get',
    params: query
  })
}
export function buttonList(query) {
  return request({
    url: '/system/button/buttonList',
    method: 'get',
    params: query
  })
}

// 查询流程按钮详细
export function getButton(id) {
  return request({
    url: '/system/button/' + id,
    method: 'get'
  })
}

// 新增流程按钮
export function addButton(data) {
  return request({
    url: '/system/button',
    method: 'post',
    data: data
  })
}

// 修改流程按钮
export function updateButton(data) {
  return request({
    url: '/system/button',
    method: 'put',
    data: data
  })
}

// 删除流程按钮
export function delButton(id) {
  return request({
    url: '/system/button/' + id,
    method: 'delete'
  })
}
